package com.example.demo.moduel.service.impl;

import com.example.demo.moduel.entity.Worker;
import com.example.demo.moduel.mapper.WorkerMapper;
import com.example.demo.moduel.service.WorkerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WorkerServiceImpl implements WorkerService {

       @Autowired
       private WorkerMapper workerMapper;
       @Override
       public Worker getWorkerById(Long id) {
              return workerMapper.getWorkerById(id);
       }
}
